/* eslint-disable @iceworks/best-practices/no-http-url */
/*
 * @Author: 黄威
 * @Date: 2022-09-14 10:18:13
 * @LastEditors: 黄威
 * @LastEditTime: 2024-10-16 16:47:10
 * @Description: lce 构造配置（vite模式 开发还是不稳定，采用webpack模式）
 */
export default {
  // router: false,
  vite: false,
  publicPath: './',
  externals: { cesium: 'Cesium', l3d: 'L3d' },
  webpackPlugins: {
    'windicss-webpack-plugin': {},
  },
  webpackLoaders: {
    SvgIcon: {
      test: /\.icon$/,
      loaders: {
        '@svgr/webpack': {
          options: {
            memo: true,
            svgProps: {
              style: '{props.style}',
              className: '{props.className}',
              width: '{props.width}',
              height: '{props.height}',
            },
          },
        },
      },
    },
  },
  plugins: ['build-plugin-jsx-plus'],
};
